﻿<script type="text/template" id="list-office-item-template">
    <td class="text-center">
        <%= model.Order %>
    </td>
    <td> 
        <%= model.Name %>
    </td>
    <td>
        <%= model.Address %>
    </td>
    <td>
        <%= model.Email%>
    </td>
     <td>
        <%= model.Phone%>
    </td>
     <td>
        <%= model.Representer%>
    </td>
    <td>
       <input type="checkbox"  <%= model.IsActive == true ? 'checked="checked"' : '' %> name = "IsActive" class="cbxIsActive" />
    </td>
    <td>
        <%= dateFormat( model.UpdatedAt, jsResources.lang.DateFormat)%>
    </td>
    <td>
        <a href="javascript:void(0)" class="grid-update"><%= jsResources.lang.GridEdit %></a>    
    </td>
    <td>
         <a href="javascript:void(0)" class="grid-delete"><%= jsResources.lang.GridDelete %></a>               
    </td>
</script>
<script type="text/template" id="office-form-template">
    <div id="office-form-error" class="error"></div>
    <form id="officePartner-form" onsubmit="return false;">
        <ul class="idata-form">
            <li>
                 <span class="idata-form-title">
                    <%= jsResources.lang.ManageOfficePartnerName %>
                 </span>
                 <span>
                    <input class="name" type="text" size="40" name="Name" id="Name" required value="<%= model.Name %>"> 
                 </span>
            </li>
            <li>          
                 <span class="idata-form-title"><%= jsResources.lang.ManageOfficePartnerAddress %>                 </span>
                 <span>
                 <textarea class="Address" type="text" size="40" name="Address" id="Address"><%= model.Address %></textarea>
              </span>
            </li>
            <li>
                <span class="idata-form-title"><%= jsResources.lang.ManageOfficePartnerEmail %>                     </span>
                 <span>
                 <input class="Email" type="text" size="40" name="Email" id="Email" value="<%= model.Email %>"> 
              </span>
            </li>   
            <li>
                <span class="idata-form-title"><%= jsResources.lang.ManageOfficePartnerPhone %>                
                </span>
                 <span>
                 <input class="Phone" type="text" size="40" name="Phone" id="Phone" value="<%= model.Phone %>"> 
              </span>
            </li>
            <li>
                <span class="idata-form-title"><%= jsResources.lang.ManageOfficePartnerRepresenter%>                </span>
                 <span>
                 <input class="Representer" type="text" size="40" name="Representer" id="Representer" value="<%= model.Representer %>"> 
              </span>
            </li>     
            <li>
                <span class="idata-form-title"><%= jsResources.lang.ManageOfficePartnerActive%>                  </span>
                 <span>
                <input type="checkbox" name = "IsActive" id="IsActive" <%= model.IsActive == true ? 'checked="checked"' : '' %> />
              </span>
            </li>
                    </ul>
        <div class="clear"></div>
        <center>
                <button type="submit" class="action" id="submit"><%= model.id == 0 ? jsResources.lang.Create : jsResources.lang.Update %></button>
        </center>
    </form>

</script>
